package com.yonyou.cms.epc.client.dto.graphic;

import com.yonyou.cms.epc.client.dto.BaseDTO;
import com.yonyou.cyx.framework.bean.entity.base.BasePO;
import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;

import java.io.Serializable;


/**
 * <p>
 * </p>
 * @author xh
 * @since 2022-06-09
 */

public class GraphicInfoDTO extends BaseDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Integer graphicId;
    /**
     * 系统代码
     */
    private String systemCode;
    /**
     * 系统名称
     */
    private String systemName;
    /**
     * 车型代码
     */
    private String modelCode;
    /**
     * 车型名称
     */
    private String modelName;
    /**
     * 完成状态(默认0未完成，1已完成)
     */
    private Integer okstate;
    /**
     * 备注
     */
    private String remark;
    /**
     * 是否删除
     */
    private Boolean isDeleted;

    public GraphicInfoDTO() {
        super();
    }

    public Integer getGraphicId() {
        return graphicId;
    }

    public void setGraphicId(Integer graphicId) {
        this.graphicId = graphicId;
    }

    public String getSystemCode() {
        return systemCode;
    }

    public void setSystemCode(String systemCode) {
        this.systemCode = systemCode;
    }

    public String getSystemName() {
        return systemName;
    }

    public void setSystemName(String systemName) {
        this.systemName = systemName;
    }

    public String getModelCode() {
        return modelCode;
    }

    public void setModelCode(String modelCode) {
        this.modelCode = modelCode;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public Integer getOkstate() {
        return okstate;
    }

    public void setOkstate(Integer okstate) {
        this.okstate = okstate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Boolean getDeleted() {
        return isDeleted;
    }

    public void setDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }

    @Override
    public String toString() {
        return "GraphicInfoDTO{" +
                "graphicId=" + graphicId +
                ", systemCode=" + systemCode +
                ", systemName=" + systemName +
                ", modelCode=" + modelCode +
                ", modelName=" + modelName +
                ", okstate=" + okstate +
                ", remark=" + remark +
                ", isDeleted=" + isDeleted +
                "}";
    }

    /**
     * 将DTO 转换为PO
     * //对某个对象属性进行赋值
     * //BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param poClass dto 需要转换的dto
     * @author yzy
     * @since 2018/7/22 0022
     */
    @Override
    public <T extends BasePO> T transDtoToPo(Class<T> poClass) {
        return super.transDtoToPo(poClass);
    }

    /**
     * 将DTO 转换为PO
     * BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param po 需要转换的对象
     * @author xh
     * @since 2018/7/22 0022
     */
    public <T extends BasePO> void transDtoToPo(T po) {
        BeanMapperUtil.copyProperties(this, po, "graphicId");
    }

}
